package es.uclm.itsue.interfaces;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ToggleButton;


public class ButtonsActivity extends Activity implements OnClickListener {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.button_layout);
        
        Button b1 = (Button) findViewById(R.id.button1);
        b1.setOnClickListener(this);

        ToggleButton tb1 = (ToggleButton) findViewById(R.id.toggleButton1);
        tb1.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.button1:
			finish();
			break;
		case R.id.toggleButton1:
			
			break;
			
		}
	}
}